@echo off

set v=hello
if %v%==hello (echo OK) else (echo NO)

pause